package com.yitiao.base;

import java.util.regex.Pattern;

public class Match {
    public static void main(String[] args) {
        String emailMatcher="^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*\\.[a-zA-Z0-9]{2,6}$";
        System.out.println(Pattern.matches(emailMatcher,"123@123.h.w"));
    }
}
